﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Domain
{
    [Table("GoodsModel")]
    public class GoodsModel:BaseEntity
    {
        [Required]
        [StringLength(15)]
        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        [Required]
        [StringLength(30)]
        public string CreateBatch { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int ExpireTime { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string CreateCode { get; set; }
        /// <summary>
        /// 生产公司
        /// </summary>
        public string CreateCompany { get; set; }
        /// <summary>
        /// 序列化的封面图片路径
        /// </summary>   
        public string Covers { get; set; }
        /// <summary>
        /// 序列化的检验图片路径
        /// </summary>   
        public string Tests { get; set; }
        /// <summary>
        /// 完成度
        /// </summary>
        public string Proportion { get; set; }
        /// <summary>
        /// 养殖外键
        /// </summary>
        public long BreedId { get; set; }
        /// <summary>
        /// 屠宰外键
        /// </summary>
        public long KillId { get; set; }
        /// <summary>
        /// 深加工外键
        /// </summary>
        public long FinishStepId { get; set; }


    }
}
